package webflux2.exception;

import lombok.Data;

@Data
public class CheckException extends RuntimeException {

    private static final long serialVersionUID = -8177929128352045135L;

    //出错字段的名字
    private String fieldName;

    //出错字段的值
    private String fieldValue;

    public CheckException() {
        super();
    }

    public CheckException(String message) {
        super(message);
    }

    public CheckException(String message, Throwable cause) {
        super(message, cause);
    }

    public CheckException(Throwable cause) {
        super(cause);
    }


    public CheckException(String fieldName, String fieldValue) {
        super();
        this.fieldName = fieldName;
        this.fieldValue = fieldValue;
    }

}
